package com.xbongbong.paas.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * @author: yingjf
 * @date: 2023/3/13 14:11
 * @description: 模板字段
 */
@Getter
public enum TemplateFieldEnum {



    /**
     * 模板名称
     */
    TEMPLATE_NAME("templateName", "enum.templateField.name.templateName"),
    /**
     * 附件
     */
    FILE("file", "enum.templateField.name.file"),

    ;
    private String alias;
    private String name;

    TemplateFieldEnum(String alias, String name) {
        this.alias = alias;
        this.name = name;
    }
    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }

}
